﻿@model RFBR.Models.MainMenu

@Styles.Render(Bundles.Style.MainMenu)
@{
	bool KBOpened = ViewBag.KBOpened != null && ViewBag.KBOpened ? true : false;
}
<div id="MainMenu">
	<div class="button open">
		@using (Html.BeginForm("Open", "MainMenu", FormMethod.Post, new { enctype = "multipart/form-data" }))
		{
			@*@Html.EditorFor(m => m.KnowledgeBaseFile, new { type="file", onchange = "this.form.submit()" })*@
			<input type="file" id="KnowledgeBaseFile" name="KnowledgeBaseFile" onchange="this.form.submit()" />
		}
	</div>
	<div class="button export">
		@if (KBOpened) { 
			@Html.ActionLink(".", "ExportToXml", "MainMenu", null, new { style = "font-size: 1px;", target = "_blank" })
		}
	</div>
</div>